package com.xls.resource.dialog.utils.download;

import com.lzz.bottomencapsulation.net.HttpRequest;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface IApiserver {

    @Streaming
    @GET
    Observable<ResponseBody> download(@Url String url);

    @FormUrlEncoded
    @POST("/api/user/mg/businessMD5")
    Observable<HttpRequest<FileEntity>> getUserCode2(@Field("apkName") String apkName, @Field("userCode") String userCode, @Field("keyStore") String keyStore);

}
